<%@ taglib prefix="c" uri="" %>
<%--
  Created by IntelliJ IDEA.
  User: liquan
  Date: 2021/11/16
  Time: 12:56 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <h2>开心就好</h2>
  <div>
    <%--这里表单表示的意思：以post方式提交表单，提交到我们的login请求--%>
    <form action="${pageContext.request.contextPath}/login" method="post">
      用户名：<input type="text" name="username"> <br>
      密码: <input type="password" name="password">  <br>
      爱好：
      <input type="checkbox" name="hobbys" value="女孩">女孩
      <input type="checkbox" name="hobbys" value="代码">代码
      <input type="checkbox" name="hobbys" value="唱歌">唱歌
      <input type="checkbox" name="hobbys" value="电影">电影

      <br>
      <input type="submit">
    </form>
  </div>
  <body>

  <a href="<c:url value='/listen?method=contextOperation'/>">SevletContext操作属性</a>
  <br/>

  <a href="<c:url value='/ListenerServlet?method=sessionOperation'/>">HttpSession操作属性</a>

  <br/>

  <a href="<c:url value='/ListenerServlet?method=requestOperation'/>">ServletRequest操作属性</a> |

  </body>
  </body>
</html>
